package com.ncst.backend.mapper;

import com.ncst.backend.domain.Disease;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 疾病Mapper接口
 */
@Mapper
public interface DiseaseMapper {
    
    Disease selectById(@Param("id") Integer id);
    List<Disease> selectAll();
    List<Disease> selectByCondition(Disease disease);
    List<Disease> selectByPage(@Param("offset") Integer offset, @Param("limit") Integer limit);
    Long countAll();
    Long countByCondition(Disease disease);
    int insert(Disease disease);
    int insertBatch(@Param("list") List<Disease> list);
    int updateById(Disease disease);
    int deleteById(@Param("id") Integer id);
    int deleteByIds(@Param("ids") List<Integer> ids);
}
